package com.haiyou.mini.programs.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ToString
@ApiModel(value = "小程序登陆表单")
public class WxLoginForm implements Serializable {

    @ApiModelProperty(value = "通过wx.login获取code", name = "code")
    @NotNull(message = "code不能为空")
    private String code;

    @ApiModelProperty(value = "通过getPhoneNumber获取encryptedData", name = "encryptedData")
    @NotNull(message = "encryptedData不能为空")
    private String encryptedData;

    @ApiModelProperty(value = "通过getPhoneNumber获取iv", name = "iv")
    @NotNull(message = "iv不能为空")
    private String iv;
}
